/*
 * NxMSWander.java
 *
 * Created on 13 de febrero de 2008, 11:24 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package nx2.behaviors;

import nx2.behaviors.NxBehavior;
import nx2.utils.*;
/**
 *
 * @author alejo
 */
public class NxMSWander extends NxBehavior{
    
    /** Creates a new instance of NxMSWander */
    public NxMSWander(String name) {
        super(name);
        
    }
    
    public Vector2D value() {
        Vector2D vector=new Vector2D(0,0,Vector2D.MODE_MA);
        double linear = Math.random();
        double angular = Math.random();
        vector.setMag((float)linear);
        vector.setAngle((float)angular);
        
        
           
        return vector;
    }
    
    
}
